<? 
$percent = $rating->get_rating($article['Rating']);
?>
<div id="rating">
    <? if($rating->amount($article['Rating'])>0) {?>
    <p style="padding: 0;"><? __('rating'); echo ': '.$percent.'%'?>
        <br/><? __('value'); echo ': '.$rating->amount($article['Rating']); ?></p>
    <div id="rating_status_bar" style="width:<?echo $percent; ?>%;"></div>
    <div id="rating_message">
            <?php
            if ($session->check('Message.flash')):
                $session->flash();
            endif;
            ?>
    </div>
    <? } else {?>
    <p><? __('No ratings'); ?></p>
    <? } ?>
    <div id="rating_actions">
        <? echo $ajax->link(__('bad',true),$url.'/rating/0',array('update'=>'rating_message')); ?> &bull;
        <? echo $ajax->link(__('good',true),$url.'/rating/1',array('update'=>'rating_message')); ?>
    </div>
</div>